﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BranchMgmtSelectUserControl.ascx.cs"
    Inherits="com.stifel.BranchMgmt.BranchMgmtSelectUserControl" %>
<%--START: CSS and JS --%>
<link type="text/css" rel="Stylesheet" media="all" href="/_layouts/com.stifel.BranchMgmt/stylesheets/style.css" />
<script language="javascript" type="text/javascript" src="/_layouts/com.stifel.BranchMgmt/scripts/jquery-1.4.1.min.js"></script>
<script language="javascript" type="text/javascript" src="/_layouts/com.stifel.BranchMgmt/scripts/jquery-base64encoding.js"></script>
<script language="javascript" type="text/javascript" src="/_layouts/com.stifel.BranchMgmt/scripts/jquery-custom.js"></script>
<script language="javascript" type="text/javascript" src="/_layouts/com.stifel.BranchMgmt/scripts/js-custom.js"></script>
<script language="javascript" type="text/javascript">
// <![CDATA[
// ]]>
</script>
<style type="text/css">
    
</style>
<%--END: CSS and JS --%>
<%--START: http://msdn.microsoft.com/en-us/library/ee231545.aspx--%>
<asp:HiddenField ID="SharePoint_Project_FileNameWithoutExtension" Value="$SharePoint.Project.FileNameWithoutExtension$"
    runat="server" />
<asp:HiddenField ID="SharePoint_Project_AssemblyFullName" Value="$SharePoint.Project.AssemblyFullName$"
    runat="server" />
<asp:HiddenField ID="SharePoint_ProjectItem_Name" Value="$SharePoint.ProjectItem.Name$"
    runat="server" />
<%--END: http://msdn.microsoft.com/en-us/library/ee231545.aspx--%>
<asp:UpdatePanel ID="uiAjax" runat="server" UpdateMode="Always">
    <ContentTemplate>
        <asp:Panel ID="uiSearch" runat="server" Visible="true">
            <table width="99%">
                <tr>
                    <td valign="top" style="width: 100px;">
                            <asp:Label ID="uiLblNavigation" runat="server" Text="Search by:" CssClass="ms-vb"></asp:Label>&nbsp;&nbsp;
                    </td>
                    <td>
                        <div id="uiNavigation" runat="server">
                            <asp:Button ID="uiBtnBranchId" Text="Branch ID" runat="server" CommandArgument="uiBranchId"
                                OnClick="uiNavigationTab_Click" ToolTip="Search by branch identifier" CssClass="t" />
                            <asp:Button ID="uiBtnBranchUnit" Text="Branch Unit" runat="server" CommandArgument="uiBranchUnit"
                                OnClick="uiNavigationTab_Click" ToolTip="Search by branch unit" CssClass="t" />
                            <asp:Button ID="uiBtnSpeedDial" Text="Speed Dial" runat="server" CommandArgument="uiSpeedDial"
                                OnClick="uiNavigationTab_Click" ToolTip="Search by speed dial" CssClass="t" />
                            <asp:Button ID="uiBtnOrg" Text="Org Code" runat="server" CommandArgument="uiOrg"
                                OnClick="uiNavigationTab_Click" ToolTip="Search by organization code" CssClass="t" />
                            <asp:Button ID="uiBtnSiteId" Text="Site ID" runat="server" CommandArgument="uiSiteId"
                                OnClick="uiNavigationTab_Click" ToolTip="Search by site identifier" CssClass="t" />
                            <asp:Button ID="uiBtnThompsonId" Text="Thompson ID" runat="server" CommandArgument="uiThompsonId"
                                OnClick="uiNavigationTab_Click" ToolTip="Search by Thompson ID" CssClass="t" />
                            <asp:Button ID="uiBtnWireCode" Text="Wire Code" runat="server" CommandArgument="uiWireCode"
                                OnClick="uiNavigationTab_Click" ToolTip="Search by wire code" CssClass="t" />
                            <asp:Button ID="uiBtnCheckCode" Text="Check Code" runat="server" CommandArgument="uiCheckCode"
                                OnClick="uiNavigationTab_Click" ToolTip="Search by check code" CssClass="t" />
                            <asp:Button ID="uiBtnDestCode" Text="Destination Code" runat="server" CommandArgument="uiDestCode"
                                OnClick="uiNavigationTab_Click" ToolTip="Search by destination code" CssClass="t" />
                            <asp:Button ID="uiBtnBroadcastIp" Text="Broadcast IP" runat="server" CommandArgument="uiBroadcastIp"
                                OnClick="uiNavigationTab_Click" ToolTip="Search by broadcast IP" CssClass="t" />
                            <asp:Button ID="uiBtnPriceServer" Text="Price Server" runat="server" CommandArgument="uiPriceServer"
                                OnClick="uiNavigationTab_Click" ToolTip="Search by price server" CssClass="t" />
                        </div>
                    </td>
                    <td valign="top" style="width: 95px; text-align: right;">
                        <asp:Button ID="uiBtnSearch" runat="server" OnClick="uiBtnSearch_Click" Text="Search" />
                    </td>
                </tr>
            </table>
            <asp:MultiView ID="uiView" runat="server" ActiveViewIndex="0">
                <asp:View ID="uiBranchId" runat="server" OnActivate="uiBranchId_Activate" OnDeactivate="uiBranchId_Deactivate">
                <asp:Panel ID="uiPnlBranchId" Height="150px" runat="server">
                <br />
                <table>
                <tr>
                <td>
                    <asp:Literal ID="uiLitBranchId" runat="server" Text="Branch Id : "></asp:Literal>
                </td>
                <td>
                    <asp:TextBox ID="uiTbBranchId" runat="server"></asp:TextBox>
                </td>
                </tr>
                </table>
                </asp:Panel>
                </asp:View>
                <asp:View ID="uiBranchUnit" runat="server" OnActivate="uiBranchUnit_Activate" OnDeactivate="uiBranchUnit_Deactivate">
                </asp:View>
                <asp:View ID="uiSpeedDial" runat="server" OnActivate="uiSpeedDial_Activate" OnDeactivate="uiSpeedDial_Deactivate">
                </asp:View>
                <asp:View ID="uiOrg" runat="server" OnActivate="uiOrg_Activate" OnDeactivate="uiOrg_Deactivate">
                </asp:View>
                <asp:View ID="uiSiteId" runat="server" OnActivate="uiSiteId_Activate" OnDeactivate="uiSiteId_Deactivate">
                </asp:View>
                <asp:View ID="uiThompsonId" runat="server" OnActivate="uiThompsonId_Activate" OnDeactivate="uiThompsonId_Deactivate">
                <asp:Panel ID="uiPnlThompsonIn" runat="server" Height="150px">
                <br />
                <table>
                <tr>
                <td>
                    <asp:Literal ID="uiLitThompsonId" runat="server" Text="Thompson Id : "></asp:Literal>
                </td>
                <td>
                    <asp:TextBox ID="uiTbThomsonId" runat="server"></asp:TextBox>
                </td>
                </tr>
                </table>
                </asp:Panel>
                </asp:View>
                <asp:View ID="uiWireCode" runat="server" OnActivate="uiWireCode_Activate" OnDeactivate="uiWireCode_Deactivate">
                </asp:View>
                <asp:View ID="uiCheckCode" runat="server" OnActivate="uiCheckCode_Activate" OnDeactivate="uiCheckCode_Deactivate">
                </asp:View>
                <asp:View ID="uiDestCode" runat="server" OnActivate="uiDestCode_Activate" OnDeactivate="uiDestCode_Deactivate">
                </asp:View>
                <asp:View ID="uiBroadcastIp" runat="server" OnActivate="uiBroadcastIp_Activate" OnDeactivate="uiBroadcastIp_Deactivate">
                </asp:View>
                <asp:View ID="uiPriceServer" runat="server" OnActivate="uiPriceServer_Activate" OnDeactivate="uiPriceServer_Deactivate">
                </asp:View>
                <asp:View ID="uiUnknown" runat="server">
                    <asp:Panel ID="Panel2" runat="server" GroupingText="Unknown Request">
                        <asp:Literal ID="Literal1" Text="Unknown area requested." runat="server" />
                    </asp:Panel>
                </asp:View>
            </asp:MultiView>
        </asp:Panel>
        <asp:Panel ID="uiResults" runat="server" Visible="false">
                    <div id="uiResults_RepeaterHeader" style="overflow: hidden; padding-bottom: 0px;">
                        <table style="width: 100%; border-spacing: 0px; table-layout: fixed;">
                            <tr>
                                <td style="width: 25%; padding-left: 2px;">
                                    <h5 class="ms-standardheader ms-WPTitle">
                                        TODO
                                    </h5>
                                </td>
                                <td style="width: 10%;">
                                    <h5 class="ms-standardheader ms-WPTitle">
                                        <div style="word-break: break-all;">
                                            TODO</div>
                                    </h5>
                                </td>
                                <td style="width: 15%;">
                                    <h5 class="ms-standardheader ms-WPTitle">
                                        <div style="word-break: break-all;">
                                            TODO</div>
                                    </h5>
                                </td>
                                <td style="width: 50%; padding-left: 0px;">
                                    <h5 class="ms-standardheader ms-WPTitle">
                                        TODO
                                    </h5>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="uiResults_RepeaterList" style="overflow: auto; height: 390px; padding-top: 0px;">
                        <div id="uiResults_RepeaterInternal">
                            <asp:Repeater ID="uiResults_Repeater" runat="server" OnItemCommand="uiResults_ItemCommand"
                                OnItemDataBound="uiResults_ItemDataBound">
                                <HeaderTemplate>
                                    <table border="0" cellpadding="2" cellspacing="0" style="width: 100%; table-layout: fixed;">
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <tr class="alt-background-color">
                                        <td class="ms-vb" style="width: 25%;">
                                            <div style="word-break: break-all;">
                                                <%# DataBinder.Eval( Container.DataItem, "TODO" ) %>
                                            </div>
                                        </td>
                                        <td class="ms-vb" style="width: 10%; padding-left: 5px;">
                                            <div style="word-break: break-all;">
                                                <%# DataBinder.Eval( Container.DataItem, "TODO" ) %>
                                            </div>
                                        </td>
                                        <td class="ms-vb" style="width: 15%; padding-left: 7px;">
                                            <div style="word-break: break-all;">
                                                <%# DataBinder.Eval( Container.DataItem, "TODO" ) %>
                                        </td>
                                        <td class="ms-vb" style="width: 50%; padding-left: 7px;">
                                            <div style="word-break: break-all;">
                                                <%# DataBinder.Eval( Container.DataItem, "TODO" ) %>
                                            </div>
                                            <asp:HiddenField ID="uiBranch_Value" runat="server" Value='<%# DataBinder.Eval( Container.DataItem, "value" ) %>' />
                                        </td>
                                    </tr>
                                </ItemTemplate>
                                <AlternatingItemTemplate>
                                    <tr>
                                        <td class="ms-vb" style="width: 25%;">
                                            <div style="word-break: break-all;">
                                                <%# DataBinder.Eval( Container.DataItem, "TODO" ) %>
                                            </div>
                                        </td>
                                        <td class="ms-vb" style="width: 10%; padding-left: 5px;">
                                            <div style="word-break: break-all;">
                                                <%# DataBinder.Eval( Container.DataItem, "TODO" ) %>
                                            </div>
                                        </td>
                                        <td class="ms-vb" style="width: 15%; padding-left: 7px;">
                                            <div style="word-break: break-all;">
                                                <%# DataBinder.Eval( Container.DataItem, "TODO" ) %>
                                            </div>
                                        </td>
                                        <td class="ms-vb" style="width: 50%; padding-left: 7px;">
                                            <div style="word-break: break-all;">
                                                <%# DataBinder.Eval( Container.DataItem, "TODO" ) %>
                                            </div>
                                            <asp:HiddenField ID="uiBranch_Value" runat="server" Value='<%# DataBinder.Eval( Container.DataItem, "value" ) %>' />
                                        </td>
                                    </tr>
                                </AlternatingItemTemplate>
                                <FooterTemplate>
                                    </table>
                                </FooterTemplate>
                            </asp:Repeater>
                        </div>
                    </div>
        </asp:Panel>
    </ContentTemplate>
</asp:UpdatePanel>
